// 改造并导出查询系统设置函数
export const getSetting=()=>{
    let promise=new Promise((reject,resolve)=>{
        wx.getSetting({
            success: (result)=>{
                reject(result)
            },
            fail: (err)=>{
                resolve(err)
            }
        });
    })
    return promise;
}
// 改造并导出系统设置函数
export const openSetting = () => {
    let promise=new Promise((reject,resolve)=>{
        wx.openSetting({
            success: (result)=>{
                reject(result)
            },
            fail: (err)=>{
                resolve(err)
            }
        });
    })
    return promise;
}
// 改造并导出获取用户收货地址函数
export const chooseAddress = () => {
    let promise=new Promise((reject,resolve)=>{
        wx.chooseAddress({
            success: (result)=>{
                reject(result)
            },
            fail: (err)=>{
                resolve(err)
            }
        });
    })
    return promise;
}